home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / CHIP Utilities / Zarzadzanie i bezpieczenstwo systemu / MBSA / MBSASetup-EN.msi / Data.Cab / reportdetailsIEZonesSub.xsl < prev    next >
Extensible Markup Language  |  2004-08-13  |  2KB  |  55 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4.     <xsl:variable name="SubID" select="'SubIDHere'"></xsl:variable>
  5.     <xsl:variable name="IEZoneName" select="'IEZoneNameHere'"></xsl:variable>
  6.     
  7.     <xsl:variable name="ScoreLookup">
  8.       <c score="0" url="Graphics/dash.gif" alttext="Check Not Performed"/>
  9.       <c score="1" url="Graphics/excl_red.gif" alttext="Unable to scan"/>
  10.       <c score="2" url="Graphics/x_red.gif" alttext="Check failed (critical)"/>
  11.       <c score="3" url="Graphics/x_gold.gif" alttext="Check failed (non-critical)"/>
  12.       <c score="4" url="Graphics/astrx.gif" alttext="Best practice"/>
  13.       <c score="5" url="Graphics/chek_grn.gif" alttext="Check passed"/>
  14.       <c score="7" url="Graphics/info.gif" alttext="Additional information"/>
  15.     </xsl:variable>
  16.  
  17.  
  18.     <xsl:template match="SecScan">    
  19.         <h1>Some or all of the user settings for this zone are below the recommended level.</h1>
  20.         <h2>Result Details
  21.         <br /><br/><xsl:value-of select="$IEZoneName"/> zone</h2>
  22.         <table id="TableID" width="100%" border="0" cellpadding="0" cellspacing="0" style="border: solid 1px #000000; padding-left: 10px; padding-right: 10px;">
  23.             <tr class="DetailHeader">
  24.                 <td style="width:40" align="center" valign="middle"><nobr>  Score  </nobr></td>
  25.                 <xsl:for-each select="Check[@ID=118]/Detail/Row/SETTINGS[@ID=$SubID]/Head/Col">
  26.                     <td nowrap="nowrap">
  27.                         <xsl:value-of select="."/> 
  28.                     </td>
  29.                 </xsl:for-each>
  30.             </tr>
  31.             
  32.     
  33.             <xsl:for-each select="Check[@ID=118]/Detail/Row/SETTINGS[@ID=$SubID]">
  34.                 <xsl:apply-templates select="Row">
  35.                 </xsl:apply-templates>
  36.             </xsl:for-each>
  37.         </table>
  38.     </xsl:template>
  39.  
  40.     <xsl:template match="Row">
  41.         <xsl:param name="score" select="@Grade"/>
  42.         <tr>
  43.             <td valign="top" align="center">
  44.                 <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=$score]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=$score]/@url}" />
  45.             </td>
  46.             <xsl:for-each select="Col">
  47.                 <td valign="top">
  48.                     <xsl:value-of select="."/>
  49.                 </td>
  50.             </xsl:for-each>
  51.         </tr>
  52.     </xsl:template>
  53.     
  54. </xsl:stylesheet>
  55.